package com.tb;

import org.apache.commons.io.IOUtils;

import java.lang.*;
/**
 * comment
 *
 * @author zhao yuan
 * @since 2018/8/8
 */
public class RunTime {
    public static void main(String[] args) throws Exception {
        Process exec = Runtime.getRuntime().exec("cmd /c convert C:\\Users\\huazh\\Desktop\\img\\77vvv.png -define filter:blur=1.5 -filter Gaussian  -resize 800x800 C:\\Users\\huazh\\Desktop\\img\\77-bluraaa.png");
        int code = exec.waitFor();
        System.out.println(IOUtils.toString(exec.getErrorStream(),"gbk"));
    }
}
